<?php

require_once __DIR__ . '/../vendor/autoload.php';


/**
 * @var \SmmsSdk\Application;
 */
$smms = new \SmmsSdk\Application([
    'debug' => false,
    'base_url' => 'https://sm.ms/api/v2',
    'auth' => [
        'username' => '您的用户名',
        'password' => '您的密码',
    ],
    'log' => [
        'name' => 'smms',
        'file' => __DIR__.'/smms.log',
        'level'      => 'debug',
        'permission' => 0777,
    ]
]);

// print_r($smms->access_token->getToken());